Fully Qualified Name: | Zend\Code\Generic\Prototype\PrototypeClassFactory |
This is a factory for classes which are identified by name.
All classes that this factory can supply need to be registered before (prototypes). This prototypes need to implement an interface which ensures every prototype has a name.
If the factory can not supply the class someone is asking for it tries to fallback on a generic default prototype, which would have need to be set before.
Parameter Name | Type | Description |
---|---|---|
$prototypes | \PrototypeInterface[] | |
$genericPrototype | \PrototypeGenericInterface |
Returns:
Parameter Name | Type | Description |
---|---|---|
$prototype | \PrototypeInterface |
Returns:
Parameter Name | Type | Description |
---|---|---|
$prototypeName | string |
Returns: \PrototypeInterface
Parameter Name | Type | Description |
---|---|---|
$name | string |
Returns: bool
Parameter Name | Type | Description |
---|---|---|
$prototype | \PrototypeGenericInterface |
Returns: